import request from '@/utils/request'

/**
 * @description: 获取维修任务的历史笔记
 */
export async function getRepairNoteByRepairId(params?): Promise<any> {
    return request.post('/api/getRepairNoteByRepairId', params)
}

/**
 * @description: 查询预登记信息根据预登记号
 */
export async function queryPreregisterMessage(params?): Promise<any> {
    return request.post('/api/preregister/queryPreregisterMessage', params)
}

/**
 * @description: 登记维修类型入库
 */
export async function putRepairPreregister(params?): Promise<any> {
    return request.post('/api/preregister/putRepairPreregister', params)
}

/**
 * @description: 登记入库
 */
export async function putProductStorage(params?): Promise<any> {
    return request.post('/api/preregister/putProductStorage', params)
}
/**
 * @description: 登记入库App
 */
export async function putProductStorageByApp(params?): Promise<any> {
  return request.post('/api/preregister/putProductStorageByApp', params)
}

/**
 * @description: 查询可绑定的代工订单
 */
export async function queryCanExternalProductPre(params?): Promise<any> {
    return request.post('/api/preregister/queryCanExternalProductPre', params)
}

/**
 * @description: 登记新到货物
 */
export async function preregisterRegister(params?): Promise<any> {
    return request.post('/api/preregister/preregisterRegister', params)
}

/**
 * @description: 查询登记(分页)
 */
export async function queryPreregisterApp(params?): Promise<any> {
    return request.post('/api/preregister/queryPreregisterApp', params)
}

/**
 * @description: 更新预登记
 */
export async function updatePreregister(params?): Promise<any> {
    return request.post('/api/preregister/updatePreregister', params)
}